<script lang="ts">
import { Component, Vue } from 'vue-property-decorator'

@Component({
  name: 'Redirect'
})
export default class extends Vue {
  created() {

  }
  mounted() {
    const { params, query } = this.$route
    // debugger
    let { path } = params
    path = path.replace(/( )/ig, '%20')
    setTimeout(() => {
      this.$router.replace({ path: '/' + path, query })
    }, 500)
  }
  render() {
    // Avoid warning for missing template
  }
}
</script>
